<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserCardsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_cards', function (Blueprint $table) {
            $table->increments('id')->comment('主键id');
            $table->integer('uid')->comment('用户id');
            $table->string('account')->comment('该用户账户号码（银行卡号/支付宝账号）');
            $table->string('account_name')->comment('该账户开户姓名');
            $table->string('account_bank')->nullable()->comment('改账户开户行');
            $table->string('remark')->nullable()->comment('备注');
            $table->integer('create_time')->comment('创建时间');
            $table->integer('update_time')->nullable()->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_cards');
    }
}
